//package io.renren.modules.subject.service.impl;
//
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import io.renren.modules.meta.entity.EventEntity;
//import io.renren.modules.subject.dao.BaseSubjectMapper;
//import io.renren.modules.subject.entity.BaseSubject;
//import io.renren.modules.subject.service.BaseSubjectService;
//import org.springframework.stereotype.Service;
//
//import java.util.ArrayList;
//import java.util.Arrays;
//import java.util.List;
//
//@Service
//public class BaseSubjectServiceImpl<T extends BaseSubject> extends ServiceImpl<BaseSubjectMapper<T>, T> implements BaseSubjectService<T> {
////    @Autowired
////    private CarDao carDao;
//
//    @Override
//    public List<EventEntity> getEvents(Long subjectId) {
//        List<EventEntity> events = new ArrayList<>();
//        List<String> tableNames = Arrays.asList("subject_a", "subject_b");
////        for (String tableName : tableNames) {
////            List<EventEntity> eventsByTableName = carDao.selectEventsBySubjectId(subjectId, tableName);
////            events.addAll(eventsByTableName);
////        }
//        return events;
//    }
//}
